﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="changepassword.aspx.cs" Inherits="Admin_changepassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        $(function () {
            $("#aspnetForm").form({
                url: "",
                onSubmit: function () {
                    if ($(this).form("validate")) {
                        var formData = dark.getFormData($("#aspnetForm"));
                        DarkBO.Admin.UpdatePassword(formData.curPasswords, formData.newPasswords1, { success: function (result) {                            
                            if (result.ErrorCode == 0) {
                                dark.dialog.success(result.Description);
                                parent.location.href = "logout.aspx";
                            } else {
                                dark.dialog.error("修改失败：" + result.Description);
                            }
                        }
                        });
                    } return false;
                }
            });

        });


    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div class="navigation"><a href="javascript:history.go(-1);" class="back">后退</a>首页 &gt; 用户管理 &gt; 修改密码</div>
<div id="contentTab">
    <ul class="tab_nav">
        <li class="selected"><a onclick="tabs('#contentTab',0);" href="javascript:;">基本信息</a></li>        
    </ul>

    <div class="tab_con" style="display:block;">
        <table class="form_table">
            <col width="150px"><col>
            <tbody>
            
            <tr>
                <th>当前密码：</th>
                <td><input id="curPasswords" name="curPasswords" type="text" data-options="required:true" class="txtInput normal easyui-validatebox" maxlength="100" /><label>*</label></td>
            </tr>
            <tr>
                <th>新密码：</th>
                <td><input id="newPasswords1" name="newPasswords1" type="text" data-options="required:true" class="txtInput normal easyui-validatebox" maxlength="100" /><label>*</label></td>
            </tr>
            </tbody>
        </table>
    </div>
     
    

    <div class="foot_btn_box">
    <input type="submit" id="btn_submit" class="easyui-linkbutton" value="提交保存" data-options="iconCls:'icon-search'"/>
    &nbsp;<input name="重置" type="reset" class="easyui-linkbutton" value="重 置" data-options="iconCls:'icon-search'"/>
    </div>
</div>
</asp:Content>

